finding trigonometric functions given the terminal side